<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
    <meta name="content-type" content="text/html; charset=UTF-8" />
    <title>APP用户编辑</title>
    <link rel="stylesheet" th:href="@{/bootstrap/css/bootstrap.min.css}" type="text/css" media="screen" />
    <script type="text/javascript" th:src="@{/jquery/jquery-1.12.4.min.js}"></script>
    <script type="text/javascript" th:src="@{/bootstrap/js/bootstrap.min.js}"></script>

</head>
<body>


<div class="panel panel-default">
    <ol class="breadcrumb">
        <li><a href="/admin/user/">APP用户管理</a></li>
        <li class="active">APP用户编辑</li>
    </ol>

    <div style="padding: 10px">
        <!-- Table -->
        <div class="row">
            <div class='col-sm-5'>
                <form id="updateForm" method="get" action="/admin/user/modifyUser">
                    <table class="table" style="border-top-width:0px;border: 1px solid #dddddd;">
                        <th:block th:if="${userDetail}">
                            <tr>
                                <td><span>用户账号:</span></td>
                                <td><span th:text="${userDetail.mobile}"></span></td>
                            </tr>
                            <tr>
                                <td><span>昵称:</span></td>
                                <td><input type="text" name="loginName" class="form-control" th:value="${userDetail.loginName}"></td>
                            </tr>
                            <tr>
                                <td><span>密码:</span></td>
                                <td><input type="text" name="password" class="form-control" th:value="${userDetail.password}"></td>
                            </tr>
                            <tr>
                                <td><input type="hidden" name="userId" class="form-control" th:value="${userDetail.id}"></td>
                                <td><button class="btn btn-default" type="submit">修改</button></td>
                            </tr>
                        </th:block>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>

</body>
</html>